<?php 
set_time_limit(0);
include '../c/config.php';
 

$dbhost='121.41.208.81';
$mysqliZ = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqliZ->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}

$query=$mysqliZ->query("select openid from z_uf group by openid having count(openid) >1 ");
$openid=array();
while ($list=$query->fetch_assoc()){
    $openid[$list['openid']]=$list['openid'];
}
foreach ($openid as $v){
    
    $query=$mysqliZ->query("select * from z_uf where openid='".$v."' ");
    while ($list=$query->fetch_assoc()){
        print_r($list);
        echo "<br />";
    }
    
    echo '------------------------- end';
    echo "<br /><br />";
}